<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
*/
// No direct access
defined( '_JEXEC' ) or die( 'Restricted access' );

jimport( 'joomla.application.component.view' );

require_once(JPATH_COMPONENT.DS.'controller.php');

/**
 *
 */
// vista de emision
class ReghsViewEmision extends JView {
    /**
     *
     **/
    function display($tpl = null) {
        JHTML::_('behavior.mootools');
        $emisionIds = JRequest::getVar('cid','','post');
        //obtengo el usuario logeado
        $usuario =& JFactory::getUser();
        $miID = $usuario->get('id');

        // Create the controller
        $controller = new ReghsController();

        $model = $controller->getModel('asistencia');
        $datos = $model->getAsistencias($emisionIds, $miID);

        $model = $controller->getModel('asistencias');
        $this->assignRef('ids',$emisionIds);
        $this->assignRef('items',$datos);
        $this->assignRef('model',$model);
        parent::display($tpl);
    }
}
?>
